package com.gx.security.base64;


import org.bouncycastle.util.encoders.Base64;

import static com.gx.security.base64.Java.src;

/**
 * Created by gx on 2017/3/28.
 */
//bc 实现
public class BouncyCastle {


    public static void bouncyCastleBase64(){
        byte [] encode = Base64.encode(src.getBytes());
        System.out.println("encode:"+ new String(encode));
        byte [] decodeBase64 = Base64.decode(encode);
        System.out.println("decode:"+new String(decodeBase64));

    }

}
